local skill = fk.CreateSkill{
  name = "action__younantongdang_skill",
}

Fk:loadTranslationTable{
  ["action__younantongdang"] = "有难同当",
  ["action__younantongdang_skill"] = "有难同当",
  [":action__younantongdang"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：你 <br /><b>效果</b>：横置所有角色。（不可响应）",
  ["#action__younantongdang_skill"] = "横置所有角色",
}


skill:addEffect("cardskill", {
  mute = true,
  name = "action__younantongdang",
  prompt = "#action__younantongdang_skill",
  mod_target_filter = Util.TrueFunc,
  can_use = function(self, player, card)
    return not player:isProhibited(player, card)
  end,
  on_use = function(self, room, cardUseEvent)
    cardUseEvent.disresponsiveList = table.simpleClone(Fk:currentRoom().players)
    if not cardUseEvent.tos or #cardUseEvent.tos == 0 then
      cardUseEvent.tos = { cardUseEvent.from }
    end
  end,
  on_effect = function(self, room, effect)
    for _, p in ipairs(room:getAlivePlayers()) do
      if not p.chained then
        p:setChainState(true)
      end
    end
  end,
})


return skill